package com.linchong.jvm.execute;

import lombok.extern.slf4j.Slf4j;

/**
 * @author linchong
 * @version 1.0
 * @Date: 2020-11-16 23:12
 * @Description: StaticAssign$静态分派，根据静态类型来定位方法执行版本的分派方式
 */
@Slf4j
public class StaticAssign {

	public void staticAssign(int a){
		log.info("test static assign:int");
	}

	public void staticAssign(String a){
		log.info("test static assign:String");
	}

	public void test(String a){
		log.info("test static assign:String");
	}

	public static void main(String[] args) {
		StaticAssign t = new StaticAssign();
		t.staticAssign(2);
		t.staticAssign("string");
	}



}
